#include "include.h"
#include "common/utils.h"

#include "compile/debug_memoryleaks"

#ifdef RUN_TESTS

BOOST_AUTO_TEST_SUITE(COMMON_TEST_SUITE);

BOOST_AUTO_TEST_CASE( math_parser_test )
{
	std::string exp("10*2/5+ (3 1/5) *5");
	double result = Math::eval(exp, (bool*)NULL);
	BOOST_TEST_MESSAGE(  "MATH test" << exp << " = " << result );
	BOOST_CHECK( (result==20) );
}

BOOST_AUTO_TEST_CASE( vector_test )
{
    Vector res = Vector::crossP(Vector(1,0,1), Vector(0,1,0) );
    BOOST_TEST_MESSAGE("res=" << res);
}


BOOST_AUTO_TEST_SUITE_END();



#endif



// EOF

